package com.redoor.app.stake.basicdata.service;

import com.redoor.app.stake.basicdata.model.BaseAssetOperationDetailLog;
import com.redoor.app.stake.basicdata.model.BaseAssetOperationTrajectory;
import com.redoornetwork.framework.mybatis.service.Service;

import java.util.List;

/**
 * Created by wangjunlei on 2018-03-03 19:26:43.
 */
public interface BaseAssetOperationDetailLogService extends Service<BaseAssetOperationDetailLog, String> {

    /**
     * 批量保存
     * @param operationTrajectories
     * @return
     */
    int saveAll(List<BaseAssetOperationDetailLog> operationTrajectories);

    /**
     * 添加日志到redis
     * @param oldObj
     * @param newObj
     * @param baseAssetOperationTrajectory
     */
    void addTraceDetailLogToRedis(Object oldObj,Object newObj,BaseAssetOperationTrajectory baseAssetOperationTrajectory);

    /**
     * 根据轨迹id获取属性变更详情
     * @param traceUuid
     * @return
     */
    List<BaseAssetOperationDetailLog> getTraceDetailList(String traceUuid);
}
